package com.sxjlrj.common.util;

import cn.hutool.core.util.StrUtil;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;

import javax.crypto.Cipher;
import java.security.*;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import java.util.Date;

public class EncryptUtil {



    public static String pwd(String baseStr) {

        Integer pwdarray[] = {49, 50, 51, 49, 50, 51};
        String c = getLoginPwd(pwdarray, baseStr);

        return c;
    }

    private static String getLoginPwd(Integer[] pwdarray, String baseStr) {

        String baseStr1 = baseStr;
        String pwd = "";
        for (int i = 0; i < pwdarray.length; i++) {
            Integer index = pwdarray[i];
            index -=48;
            pwd+= baseStr1.charAt(index);

        }
        return pwd;
    }


    public static void main(String[] args) {
       //System.out.println(pwd("fff666"));


        System.out.println( );
    }



}
